import { call } from './call'

/**
 * bind函数
 * @param {*} fn
 * @param {*} obj
 * @param  {...any} args
 */
export function bind(fn, obj, ...args) {
  return (...args2) => {
    return call(fn, obj, ...args, ...args2)
  }
}
